package interfaces.hud.targetInfos;

import interfaces.superWidgets.ListenerKeeperElement;

import com.jme.math.Vector3f;

import logic.nodes.TeamNode;

public class NodeTargetArrow extends AbsTargetArrow {
	
	private static final long serialVersionUID = 1L;
	
	public NodeTargetArrow(TeamNode target, ListenerKeeperElement element) {
		super(target, false, element);
	}
	
	@Override
	public void update() {
		if(target.getBound() == null || target.isDestroyed()) arrow.removeFromParent();
		else super.update();
	}
	
	@Override
	protected Vector3f getTargetLocation() { return target.getLocalTranslation(); }
}